﻿using UnityEngine;
using System.Collections;

public class DestroyAfterTime : MonoBehaviour 
{

	float timer = 0.0f;
	public float lifeTime = 1.0f;
	
	void Update () 
	{
		timer += Time.deltaTime;
		if(timer > lifeTime)
			Destroy(gameObject);
	}
}
